package com.tanhua.model.vo;

import com.tanhua.model.db.Dimensions;
import com.tanhua.model.db.SimilarYou;
import com.tanhua.model.db.TestSoulReport;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.List;
import java.util.Map;

@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
public class TestSoulReportVO implements Serializable {
    private Long id;//报告id

    private String conclusion;//鉴定结果

    private String cover;//鉴定图片位置

    private List<Dimensions> dimensions;//维度<维度项（外向，判断，抽象，理性）,维度值>

    private List<SimilarYou> similarYou;//与你相似

    public static TestSoulReportVO init(TestSoulReport testSoulReport, List<Dimensions> dimensions){
        return TestSoulReportVO.builder()
                .id(testSoulReport.getId())
                .cover(testSoulReport.getCover())
                .conclusion(testSoulReport.getConclusion())
                .dimensions(dimensions)
                .build();
    }
}
